/*
 * @Description: 就是一个编码添加
 */
import axiosBase from "@/api/axios";
export default {
  /**
   * @description: 分页获取列表 *代表必填
   * @param {Object}  *
   */
  queryPageList(params) {
    return axiosBase.post("/v3/40089-process-v2/jobTemplate/queryPageByCondition", {
      page: params.page,
      size: params.size,
      entity: params.entity
    });
  },
  /**
   * @description: 条件获取列表 *代表必填
   * @param {Object}  *
   */
  queryByConditionList() {
    return axiosBase.post("/v3/40089-process-v2/jobTemplate/queryByCondition", {"organizationNo":sessionStorage.organizationNo});
  },
  /**
   * @description: 添加数据项
   * @param {Object}  *
   */
  add(params) {
    return axiosBase.post("/v3/40089-process-v2/jobTemplate/add", { ...params,"organizationNo":sessionStorage.organizationNo});
  },
  /**
   * @description: 批量删除
   * @param {Object}  *
   */
  del(params) {
    return axiosBase.post("/v3/40089-process-v2/jobTemplate/delListByNo", { ...params,"organizationNo":sessionStorage.organizationNo});
  },
  /**
   * @description: 模板修改
   * @param {Object}  *
   */
  edit(params) {
    return axiosBase.post("/v3/40089-process-v2/jobTemplate/edit", { ...params,"organizationNo":sessionStorage.organizationNo});
  },
  /**
   * @description: 获取作业人
   * @param {Object}  *
   */
  queryPersonByCondition(params) {
    return axiosBase.post("v3/organization/personDepartmentMapper/queryByCondition", {"organizationNo":sessionStorage.organizationNo});
  }
};
